/**
 * Created by
 * User: Tang Yong Di
 * Date: 2016/10/26
 */

var MainRouter = Backbone.Router.extend({
    routes: {
        //主页
        "main": "main",
        //经营实况
        "main/operatingLive": "operatingLive",
        //营业统计
        "main/businessStatistics": "businessStatistics",
        //销售排行
        "main/salesRanking": "salesRanking",
        //日常收支
        "main/dailyPayments": "dailyPayments",
        //库房管理
        "main/stockManage": "stockManage",
        //员工信息
        "main/employeeInformation": "employeeInformation",
        //门店对比
        "main/storeComparison": "storeComparison"
    },
    main: function () {
        alert("main");
    },
    operatingLive: function () {
        EventHub.trigger('routedToOperatingLive');
    },
    businessStatistics: function () {
        alert("营业统计")
    },
    salesRanking: function () {
        alert("销售排行")
    },
    dailyPayments: function () {
        alert("日常收支")
    },
    stockManage: function () {
        alert("库房管理")
    },
    employeeInformation: function () {
        alert("员工信息")
    },
    storeComparison: function () {
        alert("门店对比")
    }
});
